import { axios } from '@/utils/request'

/**
 * 分页查询客户端APP版本列表
 * @param query
 * @returns {AxiosPromise}
 */
export function pageClientAppVersion(query) {
  return axios({
    url: '/appVersion/page',
    method: 'get',
    params: query
  })
}

/**
 * 查询客户端APP版本详细
 * @param id
 * @returns {AxiosPromise}
 */
export function getInfoClientAppVersion(id) {
  return axios({
    url: '/appVersion/' + id,
    method: 'get'
  })
}

/**
 * 新增客户端APP版本
 * @param data
 * @returns {AxiosPromise}
 */
export function insertClientAppVersion(data) {
  return axios({
    url: '/appVersion',
    method: 'post',
    data: data
  })
}

/**
 * 修改客户端APP版本
 * @param data
 * @returns {AxiosPromise}
 */
export function updateClientAppVersion(data) {
  return axios({
    url: '/appVersion',
    method: 'put',
    data: data
  })
}

/**
 * 删除客户端APP版本
 * @param id
 * @returns {AxiosPromise}
 */
export function deleteClientAppVersion(id) {
  return axios({
    url: '/appVersion/' + id,
    method: 'delete'
  })
}
